package com.hx.demo28.utils;

import lombok.Data;

@Data
public class Result {

    private Integer code; //状态码， 代表本次请求成功还是失败  1000010

    private Object data; //数据，请求成功携带的数据

    private String msg ; //消息说明。


    public Result() {
    }


    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }
}
